import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class MyAuthorTileSkeleton extends StatelessWidget {
  const MyAuthorTileSkeleton({super.key});

  @override
  Widget build(BuildContext context) {
    return Column(
      children: List.generate(3, (index) {
        return Padding(
          padding: EdgeInsets.only(bottom: 15.h),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              // 作者信息

              Row(
                children: [
                  Container(
                    height: 40.r,
                    width: 40.r,
                    decoration: BoxDecoration(
                      shape: BoxShape.circle,
                      color: Theme.of(context).colorScheme.inverseSurface,
                    ),
                  ),
                  10.horizontalSpace,
                  Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      Container(
                        height: 16.r,
                        width: 60.r,
                        decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(5),
                          color: Theme.of(context).colorScheme.inverseSurface,
                        ),
                      ),
                      3.verticalSpace,
                      Container(
                        height: 14.r,
                        width: 40.r,
                        decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(5),
                          color: Theme.of(context).colorScheme.inverseSurface,
                        ),
                      ),
                    ],
                  ),
                ],
              ),

              // 了解作者

              Row(
                children: [
                  Container(
                    height: 18.r,
                    width: 60.r,
                    decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(5),
                      color: Theme.of(context).colorScheme.inverseSurface,
                    ),
                  ),
                ],
              )
            ],
          ),
        );
      }),
    );
  }
}
